{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport Checkbox from '../checkbox';\nimport Dropdown from '../dropdown';\nimport { isValidElement } from '../_util/reactNode';\nimport { groupKeysMap } from '../_util/transKeys';\nimport DefaultListBody, { OmitProps } from './ListBody';\nimport Search from './search';\nconst defaultRender = () => null;\nfunction isRenderResultPlainObject(result) {\n  return !!(result && !isValidElement(result) && Object.prototype.toString.call(result) === '[object Object]');\n}\nfunction getEnabledItemKeys(items) {\n  return items.filter(data => !data.disabled).map(data => data.key);\n}\nlet TransferList = /*#__PURE__*/function (_React$PureComponent) {\n  _inherits(TransferList, _React$PureComponent);\n  var _super = _createSuper(TransferList);\n  function TransferList(props) {\n    var _this;\n    _classCallCheck(this, TransferList);\n    _this = _super.call(this, props);\n    _this.defaultListBodyRef = /*#__PURE__*/React.createRef();\n    // =============================== Filter ===============================\n    _this.handleFilter = e => {\n      const {\n        handleFilter\n      } = _this.props;\n      const {\n        target: {\n          value: filterValue\n        }\n      } = e;\n      _this.setState({\n        filterValue\n      });\n      handleFilter(e);\n    };\n    _this.handleClear = () => {\n      const {\n        handleClear\n      } = _this.props;\n      _this.setState({\n        filterValue: ''\n      });\n      handleClear();\n    };\n    _this.matchFilter = (text, item) => {\n      const {\n        filterValue\n      } = _this.state;\n      const {\n        filterOption\n      } = _this.props;\n      if (filterOption) {\n        return filterOption(filterValue, item);\n      }\n      return text.includes(filterValue);\n    };\n    // =============================== Render ===============================\n    _this.renderListBody = (renderList, props) => {\n      let bodyContent = renderList ? renderList(props) : null;\n      const customize = !!bodyContent;\n      if (!customize) {\n        bodyContent = /*#__PURE__*/React.createElement(DefaultListBody, Object.assign({\n          ref: _this.defaultListBodyRef\n        }, props));\n      }\n      return {\n        customize,\n        bodyContent\n      };\n    };\n    _this.renderItem = item => {\n      const {\n        render = defaultRender\n      } = _this.props;\n      const renderResult = render(item);\n      const isRenderResultPlain = isRenderResultPlainObject(renderResult);\n      return {\n        renderedText: isRenderResultPlain ? renderResult.value : renderResult,\n        renderedEl: isRenderResultPlain ? renderResult.label : renderResult,\n        item\n      };\n    };\n    _this.getSelectAllLabel = (selectedCount, totalCount) => {\n      const {\n        itemsUnit,\n        itemUnit,\n        selectAllLabel\n      } = _this.props;\n      if (selectAllLabel) {\n        return typeof selectAllLabel === 'function' ? selectAllLabel({\n          selectedCount,\n          totalCount\n        }) : selectAllLabel;\n      }\n      const unit = totalCount > 1 ? itemsUnit : itemUnit;\n      return /*#__PURE__*/React.createElement(React.Fragment, null, (selectedCount > 0 ? `${selectedCount}/` : '') + totalCount, \" \", unit);\n    };\n    _this.state = {\n      filterValue: ''\n    };\n    return _this;\n  }\n  _createClass(TransferList, [{\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      clearTimeout(this.triggerScrollTimer);\n    }\n  }, {\n    key: \"getCheckStatus\",\n    value: function getCheckStatus(filteredItems) {\n      const {\n        checkedKeys\n      } = this.props;\n      if (checkedKeys.length === 0) {\n        return 'none';\n      }\n      const checkedKeysMap = groupKeysMap(checkedKeys);\n      if (filteredItems.every(item => checkedKeysMap.has(item.key) || !!item.disabled)) {\n        return 'all';\n      }\n      return 'part';\n    }\n    // ================================ Item ================================\n  }, {\n    key: \"getFilteredItems\",\n    value: function getFilteredItems(dataSource, filterValue) {\n      const filteredItems = [];\n      const filteredRenderItems = [];\n      dataSource.forEach(item => {\n        const renderedItem = this.renderItem(item);\n        const {\n          renderedText\n        } = renderedItem;\n        // Filter skip\n        if (filterValue && !this.matchFilter(renderedText, item)) {\n          return null;\n        }\n        filteredItems.push(item);\n        filteredRenderItems.push(renderedItem);\n      });\n      return {\n        filteredItems,\n        filteredRenderItems\n      };\n    }\n  }, {\n    key: \"getListBody\",\n    value: function getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, filteredRenderItems, checkedKeys, renderList, showSearch, disabled) {\n      const search = showSearch ? /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-body-search-wrapper`\n      }, /*#__PURE__*/React.createElement(Search, {\n        prefixCls: `${prefixCls}-search`,\n        onChange: this.handleFilter,\n        handleClear: this.handleClear,\n        placeholder: searchPlaceholder,\n        value: filterValue,\n        disabled: disabled\n      })) : null;\n      const {\n        bodyContent,\n        customize\n      } = this.renderListBody(renderList, Object.assign(Object.assign({}, omit(this.props, OmitProps)), {\n        filteredItems,\n        filteredRenderItems,\n        selectedKeys: checkedKeys\n      }));\n      const getNotFoundContent = () => {\n        const contentIndex = this.props.direction === 'left' ? 0 : 1;\n        return Array.isArray(notFoundContent) ? notFoundContent[contentIndex] : notFoundContent;\n      };\n      let bodyNode;\n      // We should wrap customize list body in a classNamed div to use flex layout.\n      if (customize) {\n        bodyNode = /*#__PURE__*/React.createElement(\"div\", {\n          className: `${prefixCls}-body-customize-wrapper`\n        }, bodyContent);\n      } else {\n        bodyNode = filteredItems.length ? bodyContent : /*#__PURE__*/React.createElement(\"div\", {\n          className: `${prefixCls}-body-not-found`\n        }, getNotFoundContent());\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(showSearch ? `${prefixCls}-body ${prefixCls}-body-with-search` : `${prefixCls}-body`)\n      }, search, bodyNode);\n    }\n  }, {\n    key: \"getCheckBox\",\n    value: function getCheckBox(_ref) {\n      let {\n        filteredItems,\n        onItemSelectAll,\n        disabled,\n        prefixCls\n      } = _ref;\n      const checkStatus = this.getCheckStatus(filteredItems);\n      const checkedAll = checkStatus === 'all';\n      const checkAllCheckbox = /*#__PURE__*/React.createElement(Checkbox, {\n        disabled: disabled,\n        checked: checkedAll,\n        indeterminate: checkStatus === 'part',\n        className: `${prefixCls}-checkbox`,\n        onChange: () => {\n          // Only select enabled items\n          onItemSelectAll(filteredItems.filter(item => !item.disabled).map(_ref2 => {\n            let {\n              key\n            } = _ref2;\n            return key;\n          }), !checkedAll);\n        }\n      });\n      return checkAllCheckbox;\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      const {\n        filterValue\n      } = this.state;\n      const {\n        prefixCls,\n        dataSource = [],\n        titleText = '',\n        checkedKeys,\n        disabled,\n        footer,\n        showSearch = false,\n        style,\n        searchPlaceholder,\n        notFoundContent,\n        selectAll,\n        selectCurrent,\n        selectInvert,\n        removeAll,\n        removeCurrent,\n        renderList,\n        onItemSelectAll,\n        onItemRemove,\n        showSelectAll = true,\n        showRemove,\n        pagination,\n        direction\n      } = this.props;\n      // Custom Layout\n      const footerDom = footer && (footer.length < 2 ? footer(this.props) : footer(this.props, {\n        direction\n      }));\n      const listCls = classNames(prefixCls, {\n        [`${prefixCls}-with-pagination`]: !!pagination,\n        [`${prefixCls}-with-footer`]: !!footerDom\n      });\n      // ====================== Get filtered, checked item list ======================\n      const {\n        filteredItems,\n        filteredRenderItems\n      } = this.getFilteredItems(dataSource, filterValue);\n      // ================================= List Body =================================\n      const listBody = this.getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, filteredRenderItems, checkedKeys, renderList, showSearch, disabled);\n      // ================================ List Footer ================================\n      const listFooter = footerDom ? /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-footer`\n      }, footerDom) : null;\n      const checkAllCheckbox = !showRemove && !pagination && this.getCheckBox({\n        filteredItems,\n        onItemSelectAll,\n        disabled,\n        prefixCls\n      });\n      let items;\n      if (showRemove) {\n        items = [/* Remove Current Page */\n        pagination ? {\n          key: 'removeCurrent',\n          onClick: () => {\n            var _a;\n            const pageKeys = getEnabledItemKeys((((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || []).map(entity => entity.item));\n            onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(pageKeys);\n          },\n          label: removeCurrent\n        } : null, /* Remove All */\n        {\n          key: 'removeAll',\n          onClick: () => {\n            onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(getEnabledItemKeys(filteredItems));\n          },\n          label: removeAll\n        }].filter(item => item);\n      } else {\n        items = [{\n          key: 'selectAll',\n          onClick: () => {\n            const keys = getEnabledItemKeys(filteredItems);\n            onItemSelectAll(keys, keys.length !== checkedKeys.length);\n          },\n          label: selectAll\n        }, pagination ? {\n          key: 'selectCurrent',\n          onClick: () => {\n            var _a;\n            const pageItems = ((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || [];\n            onItemSelectAll(getEnabledItemKeys(pageItems.map(entity => entity.item)), true);\n          },\n          label: selectCurrent\n        } : null, {\n          key: 'selectInvert',\n          onClick: () => {\n            var _a;\n            let availableKeys;\n            if (pagination) {\n              availableKeys = getEnabledItemKeys((((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || []).map(entity => entity.item));\n            } else {\n              availableKeys = getEnabledItemKeys(filteredItems);\n            }\n            const checkedKeySet = new Set(checkedKeys);\n            const newCheckedKeys = [];\n            const newUnCheckedKeys = [];\n            availableKeys.forEach(key => {\n              if (checkedKeySet.has(key)) {\n                newUnCheckedKeys.push(key);\n              } else {\n                newCheckedKeys.push(key);\n              }\n            });\n            onItemSelectAll(newCheckedKeys, true);\n            onItemSelectAll(newUnCheckedKeys, false);\n          },\n          label: selectInvert\n        }];\n      }\n      const dropdown = /*#__PURE__*/React.createElement(Dropdown, {\n        className: `${prefixCls}-header-dropdown`,\n        menu: {\n          items\n        },\n        disabled: disabled\n      }, /*#__PURE__*/React.createElement(DownOutlined, null));\n      // ================================== Render ===================================\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: listCls,\n        style: style\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-header`\n      }, showSelectAll ? /*#__PURE__*/React.createElement(React.Fragment, null, checkAllCheckbox, dropdown) : null, /*#__PURE__*/React.createElement(\"span\", {\n        className: `${prefixCls}-header-selected`\n      }, this.getSelectAllLabel(checkedKeys.length, filteredItems.length)), /*#__PURE__*/React.createElement(\"span\", {\n        className: `${prefixCls}-header-title`\n      }, titleText)), listBody, listFooter);\n    }\n  }]);\n  return TransferList;\n}(React.PureComponent);\nexport { TransferList as default };","map":{"version":3,"names":["_classCallCheck","_createClass","_inherits","_createSuper","DownOutlined","classNames","omit","React","Checkbox","Dropdown","isValidElement","groupKeysMap","DefaultListBody","OmitProps","Search","defaultRender","isRenderResultPlainObject","result","Object","prototype","toString","call","getEnabledItemKeys","items","filter","data","disabled","map","key","TransferList","_React$PureComponent","_super","props","_this","defaultListBodyRef","createRef","handleFilter","e","target","value","filterValue","setState","handleClear","matchFilter","text","item","state","filterOption","includes","renderListBody","renderList","bodyContent","customize","createElement","assign","ref","renderItem","render","renderResult","isRenderResultPlain","renderedText","renderedEl","label","getSelectAllLabel","selectedCount","totalCount","itemsUnit","itemUnit","selectAllLabel","unit","Fragment","componentWillUnmount","clearTimeout","triggerScrollTimer","getCheckStatus","filteredItems","checkedKeys","length","checkedKeysMap","every","has","getFilteredItems","dataSource","filteredRenderItems","forEach","renderedItem","push","getListBody","prefixCls","searchPlaceholder","notFoundContent","showSearch","search","className","onChange","placeholder","selectedKeys","getNotFoundContent","contentIndex","direction","Array","isArray","bodyNode","getCheckBox","_ref","onItemSelectAll","checkStatus","checkedAll","checkAllCheckbox","checked","indeterminate","_ref2","titleText","footer","style","selectAll","selectCurrent","selectInvert","removeAll","removeCurrent","onItemRemove","showSelectAll","showRemove","pagination","footerDom","listCls","listBody","listFooter","onClick","_a","pageKeys","current","getItems","entity","keys","pageItems","availableKeys","checkedKeySet","Set","newCheckedKeys","newUnCheckedKeys","dropdown","menu","PureComponent","default"],"sources":["/data/messenger.client/node_modules/antd/es/transfer/list.js"],"sourcesContent":["import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport Checkbox from '../checkbox';\nimport Dropdown from '../dropdown';\nimport { isValidElement } from '../_util/reactNode';\nimport { groupKeysMap } from '../_util/transKeys';\nimport DefaultListBody, { OmitProps } from './ListBody';\nimport Search from './search';\nconst defaultRender = () => null;\nfunction isRenderResultPlainObject(result) {\n  return !!(result && !isValidElement(result) && Object.prototype.toString.call(result) === '[object Object]');\n}\nfunction getEnabledItemKeys(items) {\n  return items.filter(data => !data.disabled).map(data => data.key);\n}\nlet TransferList = /*#__PURE__*/function (_React$PureComponent) {\n  _inherits(TransferList, _React$PureComponent);\n  var _super = _createSuper(TransferList);\n  function TransferList(props) {\n    var _this;\n    _classCallCheck(this, TransferList);\n    _this = _super.call(this, props);\n    _this.defaultListBodyRef = /*#__PURE__*/React.createRef();\n    // =============================== Filter ===============================\n    _this.handleFilter = e => {\n      const {\n        handleFilter\n      } = _this.props;\n      const {\n        target: {\n          value: filterValue\n        }\n      } = e;\n      _this.setState({\n        filterValue\n      });\n      handleFilter(e);\n    };\n    _this.handleClear = () => {\n      const {\n        handleClear\n      } = _this.props;\n      _this.setState({\n        filterValue: ''\n      });\n      handleClear();\n    };\n    _this.matchFilter = (text, item) => {\n      const {\n        filterValue\n      } = _this.state;\n      const {\n        filterOption\n      } = _this.props;\n      if (filterOption) {\n        return filterOption(filterValue, item);\n      }\n      return text.includes(filterValue);\n    };\n    // =============================== Render ===============================\n    _this.renderListBody = (renderList, props) => {\n      let bodyContent = renderList ? renderList(props) : null;\n      const customize = !!bodyContent;\n      if (!customize) {\n        bodyContent = /*#__PURE__*/React.createElement(DefaultListBody, Object.assign({\n          ref: _this.defaultListBodyRef\n        }, props));\n      }\n      return {\n        customize,\n        bodyContent\n      };\n    };\n    _this.renderItem = item => {\n      const {\n        render = defaultRender\n      } = _this.props;\n      const renderResult = render(item);\n      const isRenderResultPlain = isRenderResultPlainObject(renderResult);\n      return {\n        renderedText: isRenderResultPlain ? renderResult.value : renderResult,\n        renderedEl: isRenderResultPlain ? renderResult.label : renderResult,\n        item\n      };\n    };\n    _this.getSelectAllLabel = (selectedCount, totalCount) => {\n      const {\n        itemsUnit,\n        itemUnit,\n        selectAllLabel\n      } = _this.props;\n      if (selectAllLabel) {\n        return typeof selectAllLabel === 'function' ? selectAllLabel({\n          selectedCount,\n          totalCount\n        }) : selectAllLabel;\n      }\n      const unit = totalCount > 1 ? itemsUnit : itemUnit;\n      return /*#__PURE__*/React.createElement(React.Fragment, null, (selectedCount > 0 ? `${selectedCount}/` : '') + totalCount, \" \", unit);\n    };\n    _this.state = {\n      filterValue: ''\n    };\n    return _this;\n  }\n  _createClass(TransferList, [{\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      clearTimeout(this.triggerScrollTimer);\n    }\n  }, {\n    key: \"getCheckStatus\",\n    value: function getCheckStatus(filteredItems) {\n      const {\n        checkedKeys\n      } = this.props;\n      if (checkedKeys.length === 0) {\n        return 'none';\n      }\n      const checkedKeysMap = groupKeysMap(checkedKeys);\n      if (filteredItems.every(item => checkedKeysMap.has(item.key) || !!item.disabled)) {\n        return 'all';\n      }\n      return 'part';\n    }\n    // ================================ Item ================================\n  }, {\n    key: \"getFilteredItems\",\n    value: function getFilteredItems(dataSource, filterValue) {\n      const filteredItems = [];\n      const filteredRenderItems = [];\n      dataSource.forEach(item => {\n        const renderedItem = this.renderItem(item);\n        const {\n          renderedText\n        } = renderedItem;\n        // Filter skip\n        if (filterValue && !this.matchFilter(renderedText, item)) {\n          return null;\n        }\n        filteredItems.push(item);\n        filteredRenderItems.push(renderedItem);\n      });\n      return {\n        filteredItems,\n        filteredRenderItems\n      };\n    }\n  }, {\n    key: \"getListBody\",\n    value: function getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, filteredRenderItems, checkedKeys, renderList, showSearch, disabled) {\n      const search = showSearch ? /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-body-search-wrapper`\n      }, /*#__PURE__*/React.createElement(Search, {\n        prefixCls: `${prefixCls}-search`,\n        onChange: this.handleFilter,\n        handleClear: this.handleClear,\n        placeholder: searchPlaceholder,\n        value: filterValue,\n        disabled: disabled\n      })) : null;\n      const {\n        bodyContent,\n        customize\n      } = this.renderListBody(renderList, Object.assign(Object.assign({}, omit(this.props, OmitProps)), {\n        filteredItems,\n        filteredRenderItems,\n        selectedKeys: checkedKeys\n      }));\n      const getNotFoundContent = () => {\n        const contentIndex = this.props.direction === 'left' ? 0 : 1;\n        return Array.isArray(notFoundContent) ? notFoundContent[contentIndex] : notFoundContent;\n      };\n      let bodyNode;\n      // We should wrap customize list body in a classNamed div to use flex layout.\n      if (customize) {\n        bodyNode = /*#__PURE__*/React.createElement(\"div\", {\n          className: `${prefixCls}-body-customize-wrapper`\n        }, bodyContent);\n      } else {\n        bodyNode = filteredItems.length ? bodyContent : /*#__PURE__*/React.createElement(\"div\", {\n          className: `${prefixCls}-body-not-found`\n        }, getNotFoundContent());\n      }\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: classNames(showSearch ? `${prefixCls}-body ${prefixCls}-body-with-search` : `${prefixCls}-body`)\n      }, search, bodyNode);\n    }\n  }, {\n    key: \"getCheckBox\",\n    value: function getCheckBox(_ref) {\n      let {\n        filteredItems,\n        onItemSelectAll,\n        disabled,\n        prefixCls\n      } = _ref;\n      const checkStatus = this.getCheckStatus(filteredItems);\n      const checkedAll = checkStatus === 'all';\n      const checkAllCheckbox = /*#__PURE__*/React.createElement(Checkbox, {\n        disabled: disabled,\n        checked: checkedAll,\n        indeterminate: checkStatus === 'part',\n        className: `${prefixCls}-checkbox`,\n        onChange: () => {\n          // Only select enabled items\n          onItemSelectAll(filteredItems.filter(item => !item.disabled).map(_ref2 => {\n            let {\n              key\n            } = _ref2;\n            return key;\n          }), !checkedAll);\n        }\n      });\n      return checkAllCheckbox;\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      const {\n        filterValue\n      } = this.state;\n      const {\n        prefixCls,\n        dataSource = [],\n        titleText = '',\n        checkedKeys,\n        disabled,\n        footer,\n        showSearch = false,\n        style,\n        searchPlaceholder,\n        notFoundContent,\n        selectAll,\n        selectCurrent,\n        selectInvert,\n        removeAll,\n        removeCurrent,\n        renderList,\n        onItemSelectAll,\n        onItemRemove,\n        showSelectAll = true,\n        showRemove,\n        pagination,\n        direction\n      } = this.props;\n      // Custom Layout\n      const footerDom = footer && (footer.length < 2 ? footer(this.props) : footer(this.props, {\n        direction\n      }));\n      const listCls = classNames(prefixCls, {\n        [`${prefixCls}-with-pagination`]: !!pagination,\n        [`${prefixCls}-with-footer`]: !!footerDom\n      });\n      // ====================== Get filtered, checked item list ======================\n      const {\n        filteredItems,\n        filteredRenderItems\n      } = this.getFilteredItems(dataSource, filterValue);\n      // ================================= List Body =================================\n      const listBody = this.getListBody(prefixCls, searchPlaceholder, filterValue, filteredItems, notFoundContent, filteredRenderItems, checkedKeys, renderList, showSearch, disabled);\n      // ================================ List Footer ================================\n      const listFooter = footerDom ? /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-footer`\n      }, footerDom) : null;\n      const checkAllCheckbox = !showRemove && !pagination && this.getCheckBox({\n        filteredItems,\n        onItemSelectAll,\n        disabled,\n        prefixCls\n      });\n      let items;\n      if (showRemove) {\n        items = [/* Remove Current Page */\n        pagination ? {\n          key: 'removeCurrent',\n          onClick: () => {\n            var _a;\n            const pageKeys = getEnabledItemKeys((((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || []).map(entity => entity.item));\n            onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(pageKeys);\n          },\n          label: removeCurrent\n        } : null, /* Remove All */\n        {\n          key: 'removeAll',\n          onClick: () => {\n            onItemRemove === null || onItemRemove === void 0 ? void 0 : onItemRemove(getEnabledItemKeys(filteredItems));\n          },\n          label: removeAll\n        }].filter(item => item);\n      } else {\n        items = [{\n          key: 'selectAll',\n          onClick: () => {\n            const keys = getEnabledItemKeys(filteredItems);\n            onItemSelectAll(keys, keys.length !== checkedKeys.length);\n          },\n          label: selectAll\n        }, pagination ? {\n          key: 'selectCurrent',\n          onClick: () => {\n            var _a;\n            const pageItems = ((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || [];\n            onItemSelectAll(getEnabledItemKeys(pageItems.map(entity => entity.item)), true);\n          },\n          label: selectCurrent\n        } : null, {\n          key: 'selectInvert',\n          onClick: () => {\n            var _a;\n            let availableKeys;\n            if (pagination) {\n              availableKeys = getEnabledItemKeys((((_a = this.defaultListBodyRef.current) === null || _a === void 0 ? void 0 : _a.getItems()) || []).map(entity => entity.item));\n            } else {\n              availableKeys = getEnabledItemKeys(filteredItems);\n            }\n            const checkedKeySet = new Set(checkedKeys);\n            const newCheckedKeys = [];\n            const newUnCheckedKeys = [];\n            availableKeys.forEach(key => {\n              if (checkedKeySet.has(key)) {\n                newUnCheckedKeys.push(key);\n              } else {\n                newCheckedKeys.push(key);\n              }\n            });\n            onItemSelectAll(newCheckedKeys, true);\n            onItemSelectAll(newUnCheckedKeys, false);\n          },\n          label: selectInvert\n        }];\n      }\n      const dropdown = /*#__PURE__*/React.createElement(Dropdown, {\n        className: `${prefixCls}-header-dropdown`,\n        menu: {\n          items\n        },\n        disabled: disabled\n      }, /*#__PURE__*/React.createElement(DownOutlined, null));\n      // ================================== Render ===================================\n      return /*#__PURE__*/React.createElement(\"div\", {\n        className: listCls,\n        style: style\n      }, /*#__PURE__*/React.createElement(\"div\", {\n        className: `${prefixCls}-header`\n      }, showSelectAll ? /*#__PURE__*/React.createElement(React.Fragment, null, checkAllCheckbox, dropdown) : null, /*#__PURE__*/React.createElement(\"span\", {\n        className: `${prefixCls}-header-selected`\n      }, this.getSelectAllLabel(checkedKeys.length, filteredItems.length)), /*#__PURE__*/React.createElement(\"span\", {\n        className: `${prefixCls}-header-title`\n      }, titleText)), listBody, listFooter);\n    }\n  }]);\n  return TransferList;\n}(React.PureComponent);\nexport { TransferList as default };"],"mappings":"AAAA,OAAOA,eAAe,MAAM,2CAA2C;AACvE,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,SAAS,MAAM,qCAAqC;AAC3D,OAAOC,YAAY,MAAM,wCAAwC;AACjE,OAAOC,YAAY,MAAM,yCAAyC;AAClE,OAAOC,UAAU,MAAM,YAAY;AACnC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,QAAQ,MAAM,aAAa;AAClC,OAAOC,QAAQ,MAAM,aAAa;AAClC,SAASC,cAAc,QAAQ,oBAAoB;AACnD,SAASC,YAAY,QAAQ,oBAAoB;AACjD,OAAOC,eAAe,IAAIC,SAAS,QAAQ,YAAY;AACvD,OAAOC,MAAM,MAAM,UAAU;AAC7B,MAAMC,aAAa,GAAG,MAAM,IAAI;AAChC,SAASC,yBAAyB,CAACC,MAAM,EAAE;EACzC,OAAO,CAAC,EAAEA,MAAM,IAAI,CAACP,cAAc,CAACO,MAAM,CAAC,IAAIC,MAAM,CAACC,SAAS,CAACC,QAAQ,CAACC,IAAI,CAACJ,MAAM,CAAC,KAAK,iBAAiB,CAAC;AAC9G;AACA,SAASK,kBAAkB,CAACC,KAAK,EAAE;EACjC,OAAOA,KAAK,CAACC,MAAM,CAACC,IAAI,IAAI,CAACA,IAAI,CAACC,QAAQ,CAAC,CAACC,GAAG,CAACF,IAAI,IAAIA,IAAI,CAACG,GAAG,CAAC;AACnE;AACA,IAAIC,YAAY,GAAG,aAAa,UAAUC,oBAAoB,EAAE;EAC9D5B,SAAS,CAAC2B,YAAY,EAAEC,oBAAoB,CAAC;EAC7C,IAAIC,MAAM,GAAG5B,YAAY,CAAC0B,YAAY,CAAC;EACvC,S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